﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using QzEbook.AccessObject;
using System.Collections.Generic;
using System.Text;
using QzEbook.Common;
using QzEbook.View;

public partial class Search : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindSitemap();
        }
    }
    private void BindSitemap()
    {
        WebMaster master = this.Master as WebMaster;
        if (master == null) return;

        string name;
        string path;
        QzSiteMapNode node;

        string keyword = Request["Key"] as string;

        //是否是在祥细用户上;
        if (String.IsNullOrEmpty(keyword)) return;
        name = "搜索:"+keyword;
        path = Request.Url.PathAndQuery;
        node = new QzSiteMapNode(path, name, name);
        master.sitemap.addChild(node);
    }
}